/*
#include "polygon.h"

Polygon::Polygon()
{
		nElem = 0;
		maxElem = 0;
		pList = NULL;
}

Polygon::Polygon( int maxSize )
{
	maxElem = maxSize;
	pList = new type[maxSize];
}
Polygon::Polygon( const Polygon &in )
{
	CloneData( in );
}

Polygon::~Polygon()
{
	DestroyData();
}

void Polygon::CloneData( const Polygon &in )
{
	if( !in.pList )
		return;
	pList = new type[in.maxElem];
	maxElem = in.maxElem;
	nElem = in.nElem;
	for( int i=0; i<in.nElem; i++ )
	{
		pList[i] = in.pList[i];
	}
}

void Polygon::DestroyData( )
{
	delete[] pList;
	pList = NULL;
}

Polygon& Polygon::operator=( const Polygon<type> &in )
{
	if( &in != this )
	{
		DestroyData();
		CloneData( in );
	}
	return *this;
}
*/